package com.csdj.course.controller;


import com.csdj.course.service.UserService;
import com.csdj.course.utils.JSONResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
@Slf4j
public class CourseController {
	@Autowired
	private UserService userService;
	@ResponseBody
	@GetMapping("selectAll")
	public JSONResult selectAll(){
		return JSONResult.ok(userService.selectAll());
	}
}
